guests = ["Mao Zedong", "Liu Yifei", "Zhou Jielun", "Li Bai"]
busy_guest = "Zhou Jielun"
new_guest = "Fang Wenshan"
new_guest_one = "Yu Hua"
new_guest_two = "Zhou Enlai"
new_guest_three = "Lu Xun"
# 周杰伦换成了方文山
guests[2] = new_guest
# 把余华插入名单开头
guests.insert(0, new_guest_one)
# 把周恩来插入名单中间
guests.insert(2, new_guest_two)
# 把鲁迅插入名单名单末尾
guests.append(new_guest_three)
new_announcement = "I can only invite two guests."
print(new_announcement)
print(guests)
# 删除5位名单人员
for number in range(5):
    take_out_guest = guests.pop()
    sorry_message = "Dear " + take_out_guest + \
                    ", I am sorry that I can not invite you."
    print(sorry_message)
# 给余下的2位人员发送邀请
for guest in guests:
    invitation = "Dear " + guest + ", would you like to have dinner with me?"
    print(invitation)
print("The number of guests: ", end="")
print(len(guests))
del guests[1]
del guests[0]
print(guests)